package Tests;

import org.junit.*;

import Client.PokerClient.src.*;
import static org.junit.Assert.*;


public class ClientTest {
  
  Client client;
	
  @Before
  public void Inicjuj() {
    client = new Client(false);
    client.getMainWindow().setVisible(false);
  }
  
  @Test
  public void NULL() {
    assertNull(client.getGameController());
    assertNull(client.getGameWindow());
    assertNull(client.getServerController());
    assertNull(client.getServerWindow());
    assertNull(client.getCreateGameWindow());
  }
  
  @Test
  public void NOTNULL() {
    assertNotNull(client.getGameThread());
    assertNotNull(client.getMainWindow());
    assertNotNull(client.getMenuWindow());
    assertNotNull(client.getServerConectionWindow());
  }
  
  @After
  public void Clean() {
    client=null;
  }
}